package ooday04;

public class Fish extends Animal implements Swim {
    Fish(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(age + "岁的" + color + "色" + name + "在吃虾米");
    }

    public void swim() {
        System.out.println(age + "岁的" + color + "色" + name + "在游泳");
    }
}
